package com.lovefreedom.psi.dao;

import java.util.List;

import com.lovefreedom.psi.bean.Category;


public interface CategoryDao {
	//增加货品目录
	public void addCategory(Category category);
	//修改货品目录
	public void updateCategory(Category category);
	//删除货品目录
	public void deleteCategory(Category category);	
	//删除货品目录
	public void deleteCategory(int categoryId);	
	//获取一条货品目录
	public Category findCategoryById(int categoryId);
	//获取所有货品目录
	public List<Category> getCategoryList();	
	//获取某一节点下的货品目录树
	public List<Category> getCategoryTree(List list, Category category);
	//获取完整的排好次序的货品目录树
	public List<Category> getCategoryTree();	
	//获取货品目录的子目录
	public List<Category> getCategoryChildren(int categoryId);
}
